package infostroy.bookagolf.components.controls;

import infostroy.bookagolf.common.Constants.Icons;
import infostroy.bookagolf.common.helpers.ImageHelper;

import javax.swing.*;

/**
 * Created by valer_000 on 2/17/14.
 */
public class GolfRadioButton extends JRadioButton {

    public GolfRadioButton(String label) {
        super(label);
        setupRadioButton();
    }

    protected void setupRadioButton() {
        this.setSelectedIcon(new ImageIcon(ImageHelper
                .getInstance().loadImage(Icons.RADIO_BUTTON_SELECTED)));
        this.setIcon(new ImageIcon(ImageHelper
                .getInstance().loadImage(Icons.RADIO_BUTTON_UNSELECTED)));
        this.setContentAreaFilled(false);
        this.setFocusPainted(false);
    }
}
